package cn.ava.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@NoArgsConstructor
@AllArgsConstructor
@Data
@Accessors(chain = true)
public class LoginParamDto {

    @NotBlank(message = "用户名不能为空!")
    private String username;
    @NotBlank(message = "密码不能为空!")
    private String password;
    @NotNull(message = "参数异常!")
    private Integer type;

}
